package com.onec.service.api.enums.error;

/**
 * payment 服务状态设计
 *
 * @author ONEC
 */
public enum ManageErrorEnum {

    /**
     * 成功
     */
    SUCCESS(10000, "成功"),
    /**
     * 服务器内部错误
     */
    EXIST_PHONE(8001, "手机号已经存在！"),
    EXIST_EMAIL(8002, "邮箱已经存在！"),
    EXIST_USER_NAME(8003, "用户名已经存在！"),
    ;

    private Integer code;

    private String message;

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    ManageErrorEnum(Integer code, String message) {
        this.code = code;
        this.message = message;
    }
}
